x86/mm: warn if we ever run out of shadow/hap pool for p2m/lgd ops.
authorTim Deegan <tim@xen.org>
Thu, 7 Mar 2013 12:49:52 +0000 (12:49 +0000)
committerTim Deegan <tim@xen.org>
Thu, 14 Mar 2013 10:33:46 +0000 (10:33 +0000)
commit97724f16028522c07f8251d94b6cca4552391fe4
tree4a95f7340092ee79ee8921fa18d4d54a071c2264
parente8c211d80c9d80d4eef09c5d1121f7ef17b61f73
x86/mm: warn if we ever run out of shadow/hap pool for p2m/lgd ops.

Even if the error propagates up through the p2m ops to the caller,
it'll look like ENOMEM, which won't be obviously a shadow-pool problem.

Warn on the console, once per domain.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/shadow/common.c
xen/include/asm-x86/domain.h